package top.frsf.plants;

import top.frsf.GameObject;
import top.frsf.utils.CountUtil;

import java.awt.*;

/**
 * @BelongsProject: MiniPZ
 * @BelongsPackage: top.frsf.plants
 * @Author: FRSF
 * @CreateTime: 2022-09-07  12:17
 * @Description: 植物父类
 * @Version: 1.0
 */
public abstract class PlantsObject extends GameObject {
    public CountUtil count = new CountUtil();
    static Image[] normal = null;
    // 植物血量
    int hp;

    public PlantsObject(String img, int x, int y, int width, int height, int hp) {
        super(img, x, y, width, height);
        this.hp = hp;
    }

    // 植物攻击
    public abstract void shoot();

    // 受到攻击
    public abstract void downHP(int hp);
}
